const app = getApp();
const AJAX = app.$ajax,
  $wx = app.$wx;

Page({
  
  onLoad(){
    this.getPicWirth();
  },

  onShareAppMessage() {

  },

  getPicWirth(){
    AJAX.picWirth({}).then(([status, res, msg]) => {
      if(status){
        this.setData({
          priwirth: res.data
        });
      }else{
        $wx.showToast(msg);
      }
    });
  }
});